/*
 * @Author: your name
 * @Date: 2021-01-04 09:50:30
 * @LastEditTime: 2021-04-03 20:08:11
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \yellow-member-admin\src\api\index.js
 */
import { get, post } from '../plugin/axioz';

export default {
  login(params) {// 用户登录
    return post('/users/login', params)
  },
  getImgList(params) {//获取图片列表
    return get('/img', params)
  },
  addImg(params) {//添加图片
    return post('/img/add_img', params, 'FormData')
  },
  deleteImg(params) {//删除图片
    return post('/img/delete_img', params)
  }
}

